package cn.sunjiachao.blog4jcs.modules.blog.dao;

import java.util.List;

import cn.sunjiachao.blog4jcs_common.model.Blog;
import cn.sunjiachao.blog4jcs_common.util.web.Page;

/**
 * Created with IntelliJ IDEA. User: Seven Date: 12-9-23 Time: 下午4:14 To change
 * this template use File | Settings | File Templates.
 */
public interface BlogDao {

	public List<Blog> listAll();

	public void save(Blog blog);

	public Page<Blog> queryForPage(int currentPage, int numsPerPage);
	
	public Blog getById(Long id);

}
